#构建容器
FROM node:22.12.0-alpine
WORKDIR /app
RUN npm config set registry https://registry.npmmirror.com
RUN npm install -g pm2
#COPY .output package.json ecosystem.config.cjs ./
EXPOSE 3000
ENTRYPOINT ["/bin/sh"]
# CMD ["-c", "pm2", "start", "ecosystem.config.cjs"]
# CMD ["-c", "pm2 start ecosystem.config.cjs"]
CMD ["-c", "pm2-runtime start ecosystem.config.cjs"]
